package interfaces;

import java.io.Serializable;

import accessers.DataReader;
import operations.Operation;

public interface Subscriber extends Serializable{
	String getTopicName(int i);
	DataReader getDataReaderListener(int i);
	DataReader getDataReaderListenerByTopicName(String topicName);
	boolean containtListener(String topicName);
	void publish(String topicName, Operation operation);
	Operation read(String topicName);
	Subscriber addDataReaderListener(String topicName, DataReader listener);
	int getListenerCount();
	String getDataReaderListenerName(int i);
	Operation getOperation(int i);
	String getOperationName(int i);
	void removeListener(int i);
	void removeListenerByName(String topicName);
}
